import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import components from 'unplugin-vue-components/vite'
import {AntDesignVueResolver} from 'unplugin-vue-components/resolvers'
import { resolve } from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    components({
      resolvers: [AntDesignVueResolver({
        importStyle: false
      })]
    })
  ],
  server: {
    host: '0.0.0.0',
    port: 218,
    open: true,
    proxy: {}
  },
  resolve: {
    alias: [{
      find: '@',
      replacement: resolve(__dirname, './src')
    }]
  }
})
